home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: otdance@aol.com (OTDance)
- Newsgroups: comp.lang.c++
- Subject: how to pass matrix to function turbo c++?
- Date: 25 Jan 1996 03:44:38 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4e7ftm$11n@newsbf02.news.aol.com>
- Reply-To: otdance@aol.com (OTDance)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- I make the matrix - no problem in main. . .
-
- I look for ways to pas the matrix to a function. . .big problems
-
- I am passing a 2 dimensional array to a function now by first loading it
- into a one dimensional array of a different name,
- ie:
- for (x=0;x<8;x++)
- {
- for (y=0;y<5;y++)
- {
- char arr1[ct]=matrix[x][y];
- ct++;
- }
- }
- passing that to the function, then exploding that info back into a 2
- dimensional array within the function so I can manipulate the data in a
- logical fashion.
-
- I want to simply pass the original matrix. . .help.
- (turbo c++ beginner)
-
- thanks in advance, Owen.
-